package com.ithei.yuchunlei;

import java.util.concurrent.TimeUnit;

import javax.ws.rs.core.MediaType;

import org.apache.cxf.jaxrs.client.WebClient;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import cn.itcast.bos.constant.Constants;
import cn.itcast.crm.domain.Customer;
import redis.clients.jedis.Jedis;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations="calsspath:applicationContext.xml")
public class Model {
	@Autowired
	private RedisTemplate<String, String> redisTemplate;
	@Test
	public void test(){
		redisTemplate.opsForValue().set("武汉", "city", 24, TimeUnit.HOURS);
		
	}
	public static void main(String[] args) {
		
	}

}
